<template>
  <div>
    <h1 v-if="level === 1"><slot></slot></h1>
    <h2 v-else-if="level === 2"><slot></slot></h2>
  </div>
</template>

<script>
export default {
  name: 'LevelComp',
  props: {
    level: {
      type: Number,
      default: 1
    }
  }
}
</script>

<style lang="scss" scoped></style>
